﻿/*-------------------------------------------------------------------------------------
 * Project Name             : Gems
 * Created By               : Naveen kumaar
 * Created Date             : 1 Nov 2012
 * Page Function            : 
 * -------------------------------------------------------------------------------------

*/


using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;


public partial class OrderHistory : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UserType_ID"] == null)
        {
            Response.Redirect("index.aspx");

        }
       
        GridView1.DataSource = GetTable();
        GridView1.DataBind();

    }
    private DataTable GetTable()
    {

        DataTable dtbl1 = new DataTable();
        dtbl1.Columns.Add("Order Number", typeof(string));
        dtbl1.Columns.Add("Product Name", typeof(string));
        dtbl1.Columns.Add("Category", typeof(string));
        dtbl1.Columns.Add("Price", typeof(float));
        dtbl1.Columns.Add("Delivery Status", typeof(string));
        dtbl1.Rows.Add("O001", "P01", "Category01", 530.00,"Yes");
        dtbl1.Rows.Add("O001", "P02", "Category02", 530.00,"No");
        dtbl1.Rows.Add("O001", "P03", "Category03", 530.00,"No");
        dtbl1.Rows.Add("O001", "P04", "Category04", 530.00,"Yes");
        dtbl1.Rows.Add("O001", "P05", "Category05", 530.00,"Yes");


        return dtbl1;
    }
}
